<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head> 
    <meta charset="UTF-8">
    <%@ include file="/WEB-INF/views/include/head.jsp"%>
    <link rel="stylesheet" href="${ctxStatic}/css/common_erp.css">
    <link rel="stylesheet" href="${ctxStatic}/css/layerSm.css"> 
    <script type="text/javascript">
    
    //删除方法
    function delCompanyUser(){
          // 调用后台删除方法
        $.post("${ctx}/companyuser/message/delete?id=${companyUser.id}",'',function(result){
             // 提示信息
             tipParent(result.message);
             // 返回状态
            if(result.statusCode==STATUSCODEOK){
                 // 刷新页面
                window.parent.frames[0].location.reload();
                 // 关闭页面
                closeWin(); 
             }
        },'json');
   }
   </script>
   
    </head>
	<body>
	<!-- 创建页面head部 -->
	<div id="editPage" class="layerHeader clearfix">
    	<p class="headerTitle"><spring:message code="CompanyUser_head_check_info"/></p>
			<div class="headerButton clearfix">
	        <!-- 编辑 -->
	        <shiro:hasPermission name="companyuser:message:edit">
	        <button type="button" onClick="window.location.href='${ctx}/companyuser/message/form?id=${companyUser.id}'" >
	               <spring:message code="CompanyUser_edit" />
	        </button>
	        
            <!-- 删除 -->
            <button type="button" onclick="del(delCompanyUser)"><spring:message code="btn_delete"/></button>
            </shiro:hasPermission>
            <!-- 取消 -->
            <button type="button" onclick="closeWin()"><spring:message code="btn_cancle"/></button>          
	    </div>
	</div>
	
	<div class="tabBox">
    <ul class="clearfix">
        <li class="active">员工信息</li>
    </ul>
    </div>

<form id="inputForm" method="post" >

<div id="showHtml">
	<div class="smList" style="padding: 20px 100px;">
			<div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--员工号-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_No" />
	                </p>
                    <p>${companyUser.userBarcode}</p>
	            </div>
	            
	        </div>
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--公司名称-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_Company" />
	                </p>
                    <p>${companyUser.ognizationName}</p>
	            </div>
	            
	            <div class="col-50 right clearfix">
	            	<!--人员角色-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_RoleAll" />
	                </p>
                    <p>${companyUser.roleName}</p>
	            </div>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--人员职务-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_DutyAll" />
	                </p>
                    <p>${companyUser.dutyName}</p>
	            </div>
	            
	            <div class="col-50 right clearfix">
	            	<!--人员组别-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_GroupAll" />
	                </p>
	           
                    <p>${companyUser.groupName}</p>
	            </div>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--姓-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_firstname" />
	                </p>
	                <p>${companyUser.firstNameEn}</p>
	            </div>
	            <div class="col-50 right clearfix">
	            	<!--名字-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_Lastname" />
	                </p>
	                <p>${companyUser.lastNameEn}</p>
	            </div>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--登录名-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_loginname" />
	                </p>
	                <p>${companyUser.loginName}</p>
	            </div>
	            <%-- <div class="col-50 right clearfix">  
	            	<!--密码-->
	                <div style="float:left;border:1px;width:18%;"><spring:message code="CompanyUser_password"/></div>
	                <div style="float:left;border:1px;width:70%;">${companyUser.password}</div>
	            </div> --%>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--性别-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_Sex" />
	                </p>
	                <p>${fns:getDictName(companyUser.sex)}</p>
	            </div>
	            <div class="col-50 right clearfix">
	            	<!--出生年月-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_BirthDate" />
	                </p>
	                <p><fmt:formatDate value="${companyUser.birthDate}" pattern="yyyy-MM-dd" /></p>
	            </div>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--联系电话-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_Mobile" />
	                </p>
	                <p>${companyUser.mobile}</p>
	            </div>
	            <div class="col-50 right clearfix">
	            	<!--身份证号-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_MobileNo" />
	                </p>
	                <p>${companyUser.idientityCardNumber}</p>
	            </div>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--传真-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_faxNo" />
	                </p>
	                 <p>${companyUser.faxNo}</p>
	            </div>
	            <div class="col-50 right clearfix">
	            	<!--Email-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_Email" />
	                </p>
	                <p>${companyUser.email}</p>
	            </div>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--国别-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_country" />
	                </p>
	                <p>${companyUser.country}</p>
	            </div>
	            <div class="col-50 right clearfix">
	            	<!--城市-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_city" />
	                </p>
	                <p>${companyUser.city}</p>
	            </div>
	        </div>
	        
	        <div class="items clearfix">
	        	<div class="col-50 clearfix">
	        		<!--工资类别-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_payrollType" />
	                </p>
	                <p>${fns:getDictName(companyUser.payrollType)}</p>
	            </div>
	            <div class="col-50 right clearfix">
	            	<!--工资-->
	                <p class="tit">
	                	<spring:message code="CompanyUser_payrollSum" />
	                </p>
	                <p><fmt:formatNumber value="${companyUser.payrollSum}" pattern="#,#00.00#"/></p>
	            </div>
	        </div>

			<div class="items clearfix">
	        	<!--详细住址-->
	            <div style="float:left;border:1px;width:9%;"><spring:message code="CompanyUser_addressAll"/></div>
	            <div style="float:left;border:1px;width:50%;">${companyUser.address}</div>
	        </div>
            <div class="items clearfix">
	            <!--备注-->
	            <div style="float:left;border:1px;width:9%;"><spring:message code="CompanyUser_remarks"/></div>
	            <div style="float:left;border:1px;width:50%;">${companyUser.remarks}</div>
	        </div>
	</div>
</div>
</form>
</body>
</html>
